package kr.hkit.powerjava.chapter05.work;

import java.util.Scanner;

public class Prog2 {
	public static void main(String[] args) {
		
			
		int a;
		int b;
		int c;
		Scanner in = new Scanner (System.in);
		System.out.print("정수를 입력하시오 :");
		a=in.nextInt();
		
		System.out.print("정수를 입력하시오 :");
		b=in.nextInt();
		
		System.out.println((c=(a>b)?a:b)+"을"+(c=(a<b)?a:b)+"으로 나눈 몫은"+(c=(a>b)?a:b)/(c=(a<b)?a:b)+"이고 나머지는"+(c=(a>b)?a:b)%(c=(a<b)?a:b));
		
		
		
		
		
		
		
		
		 
		
		
				
	}

}
